Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • trfletch 598 posts 604 karma points
    Apr 21, 2009 @ 15:25
    trfletch
    0

    News page with anchor links to each article [SOLVED]

    Hi,

    I want to setup a news page that shows the news articles and has a set of links at the top to jump to the relevant articles as follows, I believe they are called anchor links:

    News Item 1 this is a link that takes you to the article below
    News Item 2 this is a link that takes you to the article below
    News Item 3 this is a link that takes you to the article below



    News Item 1
    Text text text text text text texttext text texttext text texttext text texttext text texttext text texttext text texttext text texttext text texttext text texttext text texttext text text.

    News Item 2
    text text texttext text texttext text texttext text texttext text texttext text texttext text texttext text texttext text texttext text texttext text text

    News Item 3
    text text texttext text texttext text texttext text texttext text texttext text texttext text texttext text texttext text text

    I assume the best way to create articles are going to be child nodes of the "News" page but I'm not sure what the XSLT would look like to create the jump links at the top of the news page, hopefully I can work out the XSLT to list the actual articles. Any help or suggestions would be appreciated.

  • trfletch 598 posts 604 karma points
    Apr 21, 2009 @ 17:33
    trfletch
    0

    Don't worry, I think I have solved it with the following XSLT code:

    [code]












    [/code]

Please Sign in or register to post replies

Write your reply to:

Draft